removeAtOrNull

infix fun removeAtOrNull(index: Int): E?
infix fun removeAtOrNull(index: PositiveInt): E?

Removes an element at the specified index from the list, or returns null if the index is out of bounds.

Because this list shouldn't be empty, the element will not be removed if this list contains only one element.